package com.trkj.dao.wdm;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.DefinitionDept;

public interface DefinitionDeptDao extends CrudRepository<DefinitionDept, Long>{
	@Query("from DefinitionDept r ")
	public List<DefinitionDept> queryByNaPage(Pageable p);
		
	@Query("from DefinitionDept f where f.defideName like?1")
	public List<DefinitionDept> query_By_idorname(String text,Pageable p);

	@Query("select count(f) from DefinitionDept f where f.defideName like?1")
	public long count(String name);

	
	

}
